<?php
App::uses('AppModel', 'Model');
/**
 * CharactersSkill Model
 *
 * @property Character $Character
 * @property Skill $Skill
 */
class CharactersSkill extends AppModel {
/**
 * Validation rules
 *
 * @var array
 */
	public $validate = array(
		'character_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				'message' => 'Relationship ID\'s must be numberic',
			),		),
		'skill_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				'message' => 'Relationship ID\'s must be numberic',
			),		),
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Character' => array(
			'className' => 'Character',
			'foreignKey' => 'character_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Skill' => array(
			'className' => 'Skill',
			'foreignKey' => 'skill_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
